package com.cola.decorator14;

/**
 * @Grup:com.cola.decorator
 * @Auther:cola
 * @Data:2021/3/22-2021-03-12:43
 * @version:1.0
 */
public class EggDecorate extends Decorator {
    public EggDecorate(Drink drink) {
        super(drink);
    }

    @Override
    public String description() {
        return super.description()+"+鸡蛋";
    }

    @Override
    public float cost() {
        return super.cost()+3.0f;
    }
}
